







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Adds a new key-value pair to the dictionary. This method must be overridden in the derived class.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public abstract void Add( TKey key, TValue value ) |
Visual Basic (Declaration) |
---|
Public MustOverride Sub Add ( _ key As TKey, _ value As TValue _ ) |
Visual C++ |
---|
public: virtual void Add ( TKey key, TValue value ) abstract |
Parameters
- key
- TKey
Key to add.
- value
- TValue
Value to associated with the key.
Exceptions
Exception | Condition |
---|---|
System..::ArgumentException | key is already present in the dictionary |